﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CsharpTrainer.Strategy.Device
{
    public class MemoryDevice
    {
        public IDeviceWriter DeviceWriter { get; set; }

        public void Save()
        {
            if (DeviceWriter == null)
            {
                throw new Exception("需要设备...");
            }

            DeviceWriter.saveToDevice();
        }
    }
}
